package cloud.shyidong.core.exception;

/**
 * @Description TODO
 * @Author syd
 * @Date 2023/5/9
 */
public final class WeixinException extends RuntimeException {
    
    private final String code;
    
    private final String message;
    
    public WeixinException(String code, String message) {
        this.code = code;
        this.message = message;
    }
    
    public static WeixinException from(String code, String message) {
        return new WeixinException(code, message);
    }
    
    public String getCode() {
        return code;
    }
    
    @Override
    public String getMessage() {
        return message;
    }
    
}
